package com.leen.user.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.*;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 
 * 用户充值表
 */
@Table(name="yx_user_recharge")
@Data
@Entity
@ApiModel(value = "用户充值表")
public class YxUserRecharge implements Serializable {

    /**
     * 用户充值id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    @ApiModelProperty(value = "用户充值id")
    private Long id;

    /**
     * 充值用户UID
     */
    @Column(name = "uid")
    @ApiModelProperty(value = "充值用户UID")
    private Long uid;

    /**
     * 名称
     */
    @Column(name = "nickname")
    @ApiModelProperty(value = "名称")
    private String nickname;

    /**
     * 订单号
     */
    @Column(name = "order_id")
    @ApiModelProperty(value = "订单号")
    private String orderId;

    /**
     * 充值金额
     */
    @Column(name = "price")
    @ApiModelProperty(value = "充值金额")
    private BigDecimal price;

    /**
     * 购买赠送金额
     */
    @Column(name = "give_price")
    @ApiModelProperty(value = "购买赠送金额")
    private BigDecimal givePrice;

    /**
     * 充值类型
     */
    @Column(name = "recharge_type")
    @ApiModelProperty(value = "充值类型")
    private String rechargeType;

    /**
     * 是否充值
     */
    @Column(name = "paid")
    @ApiModelProperty(value = "是否充值")
    private Byte paid;

    /**
     * 充值支付时间
     */
    @Column(name = "pay_time")
    @ApiModelProperty(value = "充值支付时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date payTime;

    /**
     * 充值时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "充值时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 退款金额
     */
    @Column(name = "refund_price")
    @ApiModelProperty(value = "退款金额")
    private BigDecimal refundPrice;

    /**
     * 是否删除
     */
    @Column(name = "is_del")
    @ApiModelProperty(value = "是否删除")
    private Byte del;

}